package com.xiaoshuidi.cloud.module.rooms.mq.consumer;

import com.xiaoshuidi.cloud.module.rooms.pojo.RoomHouse;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.function.Consumer;

/**
 * @author hans.zhang
 */
//@Component
public class FilingConsumeradsa {

    @Bean
    public Consumer<String> filingConsumer() {
        return message -> {
            System.out.println("filingConsumer : message = " + message);
        };
    }

    @Bean
    public Consumer<List<RoomHouse>> testConsumer() {
        return message -> {
            System.out.println("testConsumer : message = " + message);
        };
    }
}
